@import "src/sass/global/mixin";

$bdr-gray: 1px solid #E3E8EE;
$bdr-fff: 1px solid #fff;

$clr-bdr-gray: #E3E8EE;
$clr-font-gray: #B3B5B7;
$clr-font-dark: #212022;

#schedule {
    .tool-bar {
        font-size: 14px;
        padding-top: 10px;
        padding-left: 15px;

        .go-back {
            &:before {
                font-size: 12px;
                margin-right: 5px;
            }
        }
    }

    .month-title {
        //margin-top: 10px;
        line-height: 50px;
        height: 50px;
        text-align: center;

        .month-name {
            display: inline-block;
            width: 85px; 
            font-size: 14px;
            color: $clr-font-dark;
        }

        .icon-left, .icon-right {
            font-size: 12px;
//            margin: 0 8px;
        }
    }
    
    .month, .sun-mon {
        /* border: $bdr;  */
        padding-bottom: 2px;  // 为了不遮住最后一根横线
        font-size: 14px;

        .week-row {
            position: relative;

            .day, .dayx {
                position: relative;
                display: inline-block;
                width: 150px;
                height: 50px;
                line-height: 50px;
                text-align: center;
                border-top: $bdr-gray; 
                border-left: $bdr-gray; 
                color: $clr-font-dark;

                &:first-child {
                    border-left: $bdr-fff; 
                }

                &.weekend {
                    color: $clr-font-gray;
                }

                // 不在本月内的
                &.beyond {
                    border-left: $bdr-fff;
                    color: $clr-font-gray;
                    background-color: #fff; // 这是为了盖住画到该区域的蓝线
                    opacity: 0.9;
                    z-index: 20;
                }

                &.beyond.date1 {
                    border-left: $bdr-gray;
                }

                &.ready {
                    background-color: #4785F9;
                }

                &.freeze {
                    /* color: red; */
                }
            }

            .dayx {
                width: 30px;
                border-top: $bdr-fff; 
                border-left: $bdr-fff; 
                color: $clr-font-gray;
            }

            &:last-child {
                .day {
                    border-bottom: $bdr-gray;
                }
            }

            .line {
                position: absolute;
                bottom: 10px;
                height: 8px;
                background-color: #4785F9;
                width: 100px;
                z-index: 10;

                &.left-tip {
                    border-top-left-radius: 4px;
                    border-bottom-left-radius: 4px;

                    &:before {
                        content: ' ';
                        position: absolute;
                        left: 4px;
                        width: 4px;
                        height: 4px;
                        border-radius: 2px;
                        margin-top: 2px;
                        background-color: #082865;
                    }

                    &.future:before {
                        background-color: #4990E2;
                    }
                    &.hot:before {
                        background-color: #999999;
                    }
                }
                &.right-tip {
                    border-top-right-radius: 4px;
                    border-bottom-right-radius: 4px;

                    &:after {
                        content: ' ';
                        position: absolute;
                        right: 4px;
                        width: 4px;
                        height: 4px;
                        border-radius: 2px;
                        margin-top: 2px;
                        background-color: #082865;
                    }

                    &.future:after {
                        background-color: #4990E2;
                    }
                    &.hot:after {
                        background-color: #999999;
                    }
                }

                // 全部在未来
                &.future {
                    background-color: #B5CEF9;
                }

                // 进行中，未来几天
                &.ahead {
                    background-color: #78AAFF;
                }

                // 刚刚选中的，还热乎的
                &.hot {
                    // background-color: green;
                    background:url();
                }
            }
        }
    }

    .comment-title {
        font-size: 0.12rem;
        color: #212022;
        line-height: 0.38rem;
        padding: 0 0.15rem;
        margin-top: 25px;
        font-weight: 700;
    }

    .comment {
        padding: 0 0.15rem 0.2rem;
        border-bottom: 1px solid #E3E8EE;
        textarea {
            font-size: 0.14rem;
            color: #B3B5B7;
            letter-spacing: 0;
            line-height: 0.2rem;
            width: 100%;
            height:0.8rem;
            outline: none;
            border: none;
        } 
    }

    .bottom-btn {
        width: 100%;
        height: 0.5rem;
        background: #4785F9;
        box-shadow: 0 -1px 0 0 rgba(51,51,51,0.10);
        color: #fff;
        font-size: 0.15rem;
        text-align: center;
        line-height: 0.5rem;
        position: fixed;
        left: 0;
        bottom: 0;
        border: none;

        &:disabled {
            opacity: 0.5;
        }
    }
}
